<php>
    $menu = array();
    $menu[] = array(
        'id'=>'1',
        'title'=>'开发者',
        'sub'=>array(
            array(
                'stitle'=>'注册',
                'url'=>url('docs/index/info',['id'=>'1','stitle'=>'注册']),
            ),
            array(
                'stitle'=>'登录',
                'url'=>url('docs/index/info',['id'=>'2','stitle'=>'登录']),
            ),
        )
    );
</php>

<volist name="menu" id="vo">
    <li class="line dk"></li>
    <li>
        <a href="javascript:;">
            <i class="fa fa-folder"></i>
            <span class="nav-label">{$vo.title}</span>
            <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
            <php>
                $smenu = $vo['sub'];
            </php>
            <volist name="smenu" id="vo1">
                <li>
                    <a href="{$vo1.url}">
                        <i class="fa fa-file"></i>
                        <span class="nav-label">{$vo1.stitle}</span>
                    </a>
                </li>
            </volist>
        </ul>
    </li>
</volist>
